<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教材发送系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', Arial, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: #333;
        }

        /* 顶部导航栏 */
        .header {
            background-color: #2c3e50;
            color: white;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .logo {
            font-size: 20px;
            font-weight: bold;
        }

        .user-info {
            display: flex;
            align-items: center;
        }

        .user-info img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 10px;
        }

        /* 主容器 */
        .container {
            display: flex;
            min-height: calc(100vh - 60px);
        }

        /* 左侧菜单栏 */
        .sidebar {
            width: 220px;
            background-color: #34495e;
            color: #ecf0f1;
            padding: 20px 0;
        }

        .menu-title {
            padding: 10px 20px;
            font-size: 14px;
            color: #95a5a6;
            text-transform: uppercase;
            font-weight: bold;
        }

        .menu-list {
            list-style: none;
        }

        .menu-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
        }

        .menu-item:hover {
            background-color: #3d566e;
        }

        .menu-item.active {
            background-color: #2c3e50;
            border-left: 4px solid #3498db;
        }

        .menu-item i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            padding: 20px;
        }

        /* 欢迎面板 */
        .welcome-panel {
            background-color: white;
            border-radius: 5px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .welcome-panel h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        /* 功能卡片区 */
        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .card {
            background-color: white;
            border-radius: 5px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            cursor: pointer;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .card-icon {
            font-size: 40px;
            color: #3498db;
            margin-bottom: 15px;
        }

        .card-title {
            font-size: 18px;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .card-desc {
            color: #7f8c8d;
            font-size: 14px;
            line-height: 1.5;
        }

        /* 最近活动 */
        .recent-activity {
            background-color: white;
            border-radius: 5px;
            padding: 20px;
            margin-top: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .recent-activity h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .activity-list {
            list-style: none;
        }

        .activity-item {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 36px;
            height: 36px;
            background-color: #f1f1f1;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: #3498db;
        }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            font-weight: bold;
            margin-bottom: 3px;
        }

        .activity-time {
            color: #95a5a6;
            font-size: 12px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                padding: 10px 0;
            }

            .menu-list {
                display: flex;
                overflow-x: auto;
                padding: 0 10px;
            }

            .menu-item {
                white-space: nowrap;
                padding: 10px 15px;
            }

            .menu-title {
                display: none;
            }
        }

        /* 内容区域切换效果 */
        .content-page {
            display: none;
        }

        .content-page.active {
            display: block;
        }

        /* 用户管理页面特有样式 */
        .user-search {
            display: flex;
            margin-bottom: 20px;
        }

        .user-search input {
            flex: 1;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
        }

        .user-search button {
            padding: 10px 15px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }

        .user-table {
            width: 100%;
            border-collapse: collapse;
            background-color: white;
        }

        .user-table th, .user-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }

        .user-table th {
            background-color: #f2f2f2;
        }

        .user-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .user-table tr:hover {
            background-color: #f1f1f1;
        }

        .action-btn {
            padding: 5px 10px;
            margin-right: 5px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .edit-btn {
            background-color: #f39c12;
            color: white;
        }

        .delete-btn {
            background-color: #e74c3c;
            color: white;
        }

        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .pagination a {
            color: black;
            padding: 8px 16px;
            text-decoration: none;
            border: 1px solid #ddd;
            margin: 0 4px;
        }

        .pagination a.active {
            background-color: #3498db;
            color: white;
            border: 1px solid #3498db;
        }

        .pagination a:hover:not(.active) {
            background-color: #ddd;
        }

    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
<!-- 顶部导航栏 -->
<div class="header">
    <div class="logo">教材发送系统</div>
    <div class="user-info">
        <img src="https://via.placeholder.com/36" alt="用户头像">
        <span>管理员</span>
    </div>
</div>

<!-- 主容器 -->
<div class="container">
    <!-- 左侧菜单栏 -->
    <div class="sidebar">
        <div class="menu-title">主菜单</div>
        <ul class="menu-list">
            <li class="menu-item active">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-book"></i>
                <span>教材管理</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-users"></i>
                <span>班级管理</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-paper-plane"></i>
                <span>教材发放</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-history"></i>
                <span>发放记录</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-chart-bar"></i>
                <span>数据统计</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-cog"></i>
                <span>系统设置</span>
            </li>
        </ul>

        <div class="menu-title">快捷操作</div>
        <ul class="menu-list">
            <li class="menu-item">
                <i class="fas fa-plus-circle"></i>
                <span>新增教材</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-upload"></i>
                <span>批量导入</span>
            </li>
            <li class="menu-item">
                <i class="fas fa-file-export"></i>
                <span>导出数据</span>
            </li>
        </ul>
    </div>

    <!-- 主内容区 -->
    <div class="main-content">
        <!-- 欢迎面板 -->
        <div class="welcome-panel">
            <h2>欢迎使用教材发送系统</h2>
            <p>当前学期：2023-2024学年第一学期 | 系统版本：v2.1.0</p>
        </div>

        <!-- 功能卡片区 -->
        <div class="card-container">
            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-book"></i>
                </div>
                <h3 class="card-title">教材管理</h3>
                <p class="card-desc">添加、编辑、删除教材信息，设置教材库存和分类管理。</p>
            </div>

            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-users"></i>
                </div>
                <h3 class="card-title">班级管理</h3>
                <p class="card-desc">管理班级信息，设置班级人数和所需教材清单。</p>
            </div>

            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-paper-plane"></i>
                </div>
                <h3 class="card-title">教材发放</h3>
                <p class="card-desc">向指定班级或学生发放教材，记录发放情况。</p>
            </div>

            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-history"></i>
                </div>
                <h3 class="card-title">发放记录</h3>
                <p class="card-desc">查看历史发放记录，支持按时间、班级等条件筛选。</p>
            </div>

            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-chart-bar"></i>
                </div>
                <h3 class="card-title">数据统计</h3>
                <p class="card-desc">统计教材使用情况，生成各类报表和分析图表。</p>
            </div>

            <div class="card">
                <div class="card-icon">
                    <i class="fas fa-cog"></i>
                </div>
                <h3 class="card-title">系统设置</h3>
                <p class="card-desc">配置系统参数，设置用户权限和管理账户。</p>
            </div>
        </div>

        <!-- 最近活动 -->
        <div class="recent-activity">
            <h3>最近活动</h3>
            <ul class="activity-list">
                <li class="activity-item">
                    <div class="activity-icon">
                        <i class="fas fa-book"></i>
                    </div>
                    <div class="activity-content">
                        <div class="activity-title">新增教材《高等数学（上册）》</div>
                        <div class="activity-time">2023-09-15 10:23</div>
                    </div>
                </li>
                <li class="activity-item">
                    <div class="activity-icon">
                        <i class="fas fa-paper-plane"></i>
                    </div>
                    <div class="activity-content">
                        <div class="activity-title">向计算机2101班发放教材</div>
                        <div class="activity-time">2023-09-14 15:42</div>
                    </div>
                </li>
                <li class="activity-item">
                    <div class="activity-icon">
                        <i class="fas fa-users"></i>
                    </div>
                    <div class="activity-content">
                        <div class="activity-title">新增班级：计算机2102班</div>
                        <div class="activity-time">2023-09-13 09:15</div>
                    </div>
                </li>
                <li class="activity-item">
                    <div class="activity-icon">
                        <i class="fas fa-file-import"></i>
                    </div>
                    <div class="activity-content">
                        <div class="activity-title">批量导入教材数据</div>
                        <div class="activity-time">2023-09-12 14:30</div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>

<script>
    // 简单的菜单交互
    document.addEventListener('DOMContentLoaded', function() {
        const menuItems = document.querySelectorAll('.menu-item');

        menuItems.forEach(item => {
            item.addEventListener('click', function() {
                // 移除所有active类
                menuItems.forEach(i => i.classList.remove('active'));
                // 为当前点击项添加active类
                this.classList.add('active');
            });
        });

        // 卡片点击跳转（示例）
        const cards = document.querySelectorAll('.card');
        cards.forEach(card => {
            card.addEventListener('click', function() {
                const title = this.querySelector('.card-title').textContent;
                alert(`您点击了: ${title}\n实际项目中这里会跳转到相应页面`);
            });
        });
    });
</script>
</body>
</html>
</html>